package com.mapper;

import com.bean.base.DictInfo;
import com.bean.base.DictItemInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DictMapper {

    List<DictInfo> selectDict(DictInfo dictInfo);

    int countByDictValue(String value);

    List<DictItemInfo> selectDictItem(DictItemInfo dictItemInfo);

    List<DictItemInfo> selectItem(DictItemInfo dictItemInfo);

    int countByDictItenValueAndDictId(@Param("value")String value,@Param("dictid")String dictid);

    DictItemInfo getDictItemForApi(@Param("dictValue") String dictValue,@Param("dictItemLabel") String dictItemLabel);

}
